A Rewriting Machine and Optimization of Strategies of Term Rewriting

نویسندگان

  • A. A. Letichevskii
  • V. V. Khomenko
چکیده

Currently, the paradigm of algebraic programming becomes one of the most important paradigms of declarative programming. Algebraic programming is based on methods of term rewriting [1], which are widely used independently and in programming systems based on other paradigms (in functional, logical, object-oriented, and agent-based programming, in computer algebra and systems of theorem proving). Among systems of algebraic programming that appeared in recent years, noteworthy are Maude, Elan, Cafe-obj, and APS [2–7]. The theory of rewriting systems is developed in detail and is presented, for example, in [8, 9]. The system of algebraic programming (APS) was created in V. M. Glushkov Cybernetics Institute of the National Academy of Sciences of Ukraine in the early nineties. The system is a professionally oriented tool for developing applied systems and is based on algebraic and logic models of object domains. The basic means of programming are systems of rewriting rules. The algebraic programming language APLAN used in the system integrates fundamental paradigms of programming and its semantics can be easily extended with the help of metaprogramming, which is also based on rewriting. Fast term rewriting is conditioned by the use of efficient parallel matching for realization of the rewriting machine considered in this article. The corresponding program was developed by S. V. Konozenko and was realized in the language C in the first version of APS. This article deals with a new version of the rewriting machine developed for a new version of the APS system. The machine is represented in the language APLAN used in the capacity of the language of executable specifications. Such a representation allows one to construct the proof of correctness of the corresponding program, to quickly develop a reliable implementation based on the programming language (C++) being used, and to obtain new modifications of the machine that support various special rewriting strategies.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

TRSs : a simple , efficient , and correct compilation technique

A simple, eecient, and correct compilation technique for left-linear Term Rewriting Systems (TRSs) is presented. TRSs are compiled into Minimal Term Rewriting Systems (MTRSs), a subclass of TRSs, presented in WK95]. In MTRSs, the rules have such a simple form that they can be seen as instructions for an easily implementable abstract machine, the Abstract Rewriting Machine (ARM). In the correctn...

متن کامل

Thesis: Strategies and analysis techniques in functional program optimization

This paper abstracts the contents of the Ph.D. dissertation which has been recently defended by the author. Functional programs are commonly modelled by term rewriting systems. The execution of such programs often gives rise to useless, dangerous, and inefficient evaluation sequences which must be avoided in order to improve their computational behaviour. The thesis presents novel methods and t...

متن کامل

REM (Reduce Elan Machine): Core of the New ELAN Compiler

ELAN is a powerful language and environment for specifying and prototyping deduction systems in a language based on rewrite rules controlled by strategies. It offers a natural and simple logical framework for the combination of the computation and deduction paradigms. It supports the design of theorem provers, logic programming languages, constraint solvers and decision procedures. ELAN takes f...

متن کامل

Introducing TRIM

We present TRIM, an abstract machine capable of executing a subset of the algebraic speci cation language OBJ3. A speci cally designed compiler translates the order sorted conditional equations of an OBJ3 speci cation into TRIM code. The fact that TRIM supports order sorted term rewriting natively di erentiates it from many other abstract term rewriting machines. To obtain more e cient abstract...

متن کامل

Configurable and Extensible Query Optimization by Controlled Term Rewriting

Classic query optimization in relational database systems relies on phases (algebraic, physical, costbased) and heuristic strategies for these phases (e. g. push selections). This, however, proves to be too inflexible not only for certain standard situations, but in particular for non-standard, e. g. spatial or multimedia applications which introduce expensive selection and join predicates, and...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2002